package com.ztesoft.book.core.base.base.qo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description 实体类基类
 * @Author YangFan
 * @Date 2021-06-22 18:25
 */
@Data
public class PageEntityQO implements Serializable {

    /**
     * 分页：当前页
     */
    @TableField(exist = false)
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @NotNull(message = "页码非空")
    private Integer current;

    /**
     * 分页：每页数量
     */
    @TableField(exist = false)
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    @NotNull(message = "每页数量非空")
    private Integer pageSize;

}
